import request from '@/utils/request'

// 查询检查信息列表
export function listConsultationinformation(query) {
  return request({
    url: '/treatment/consultationinformation/list',
    method: 'get',
    params: query
  })
}

// 查询检查信息详细
export function getConsultationinformation(id) {
  return request({
    url: '/treatment/consultationinformation/' + id,
    method: 'get'
  })
}

// 根据RegisterId查询检查信息详细
export function getConsultationinformationByRegisterId(registerId) {
  return request({
    url: '/treatment/consultationinformation/aa/' + registerId,
    method: 'get'
  })
}

// 查询regid检查信息详细
export function selectrgidConsultationinformation(id) {
  return request({
    url: '/treatment/consultationinformation/selectrgid/' + id,
    method: 'get'
  })
}


// 新增检查信息
export function addConsultationinformation(data) {
  return request({
    url: '/treatment/consultationinformation',
    method: 'post',
    data: data
  })
}

// 修改检查信息
export function updateConsultationinformation(data) {
  return request({
    url: '/treatment/consultationinformation',
    method: 'put',
    data: data
  })
}

// 删除检查信息
export function delConsultationinformation(id) {
  return request({
    url: '/treatment/consultationinformation/' + id,
    method: 'delete'
  })
}
